package com.hzw.saas.web.app.rss.param;

import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;
import java.util.List;

@Data
public class LibraryUpdateParam {
    @NotBlank(message = "参数不能为空")
    @ApiModelProperty(value = "主键,更新时传入")
    private String pid;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "文章标识")
    private String doi;

    @DateTimeFormat(pattern = DatePattern.NORM_DATE_PATTERN)
    @JsonFormat(pattern = DatePattern.NORM_DATE_PATTERN)
    @ApiModelProperty(value = "文章发布日期")
    private Date pubDate;

    @ApiModelProperty(value = "文章描述")
    private String description;

    @ApiModelProperty(value = "作者们")
    private List<String> authors;

    @ApiModelProperty(value = "期刊名")
    private String journalName;

    @ApiModelProperty(value = "树节点id")
    private String libraryCatalogId;

}
